/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) xio.name 2006</p>
 * @author xio
 */
function ProcessEventListener(xiorkFlow) {
    this.xiorkFlow = xiorkFlow;
}

ProcessEventListener.prototype.actionPerformed = function (obj) {
    var wrapper = this.xiorkFlow.getWrapper();
    var toolbar = this.xiorkFlow.getToolBar();
    var name = wrapper.getModel().getName();
	//if(this.xiorkFlow.xiorkFlowWrapper.metaNodes.size()<1){
		//ShowAlertMessageDialog("cannot Add Process Definition");
		//return;
	//}
	
    processEventDialog.model = wrapper.getModel();
	processEventDialog.show();
};